package com.uenpay.im.weight;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.view.View;

import com.uenpay.im.R;

/**
 *
 * @author SL
 * @copyRight http://www.qiyunxin.com
 */
public class MapViewPoint extends View {

	public static int w;
	public static int h;
	public static Bitmap mBitmap;

	public MapViewPoint(Context context) {
		super(context);
		mBitmap = BitmapFactory.decodeResource(getResources(),
				R.drawable.map_point);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		w = this.getWidth() / 2 - mBitmap.getWidth() / 2;
		h = this.getHeight() / 2 - mBitmap.getHeight() / 2;
		canvas.drawBitmap(mBitmap, w, h, null);
	}

}
